package model

type BuildingsInfo struct {
	Level     int32 `json:"level" bson:"level"`
	BeginTime int64 `json:"beginTime" bson:"beginTime"`
}

func (v *BuildingsInfo) Clone() *BuildingsInfo {
	r := *v
	return &r
}

type BuildingsInfoMgr map[int32]*BuildingsInfo

func (m BuildingsInfoMgr) Get(k int32) (v *BuildingsInfo) {
	v = m[k]
	if v != nil {
		v = v.Clone()
	}
	return
}
